package com.hoas.quickstart.threads.chapter01.chapter01_2_6;

public class MyThread extends Thread {

    private int count = 5;

    public MyThread(String name) {
        super(name);
    }

    @Override
    public void run() {
        super.run();
        while (count > 0) {
            count --;
            System.out.printf("\n有%s计算,count=%d", this.currentThread().getName(), count);
        }
    }
}
